raar.register
Class RAListPointer

java.lang.Object
  extended by raar.register.RAListPointer
All Implemented Interfaces:
java.io.Serializable, RAAbstractList, RAAssignable, RAEqualityComparable, RAAllowed, RAPointer

public class RAListPointer
extends java.lang.Object
implements RAPointer, RAAssignable, RAEqualityComparable, RAAbstractList

See Also:
Serialized Form

Constructor Summary
RAListPointer(java.lang.String registerLocation, RARegister register)
           
 
Method Summary
 void add(RAAllowedInList newValue)
          Adds an element to the list.
 boolean canContain(RAAllowed other)
           
 void clear()
          Clears the list.
 boolean equals(RAEqualityComparable otherElement)
           
 boolean hasMoreElements()
          Tests if this list's nextElement method can be called again.
 RAAllowed makeClone()
           
 RAAllowedInList nextElement()
          Returns the next element in this list or null if it doesn't exist.
 void resetIteration()
          This method resets the list's iterator, which means nextElement will start at the beginning of the list again.
 void set(RAAllowedInList newValue)
          Sets the last element returned by nextElement.
 java.lang.String toString()
           
 RANonElemDataType typeOfList()
           
 RADataType value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RAListPointer

public RAListPointer(java.lang.String registerLocation,
                     RARegister register)
Method Detail

value

public RADataType value()
                 throws RAException
Specified by:
value in interface RAAssignable
Specified by:
value in interface RAPointer
Throws:
RAException

typeOfList

public RANonElemDataType typeOfList()
                             throws RAException
Specified by:
typeOfList in interface RAAbstractList
Throws:
RAException

add

public void add(RAAllowedInList newValue)
         throws RAException
Adds an element to the list.

Specified by:
add in interface RAAbstractList
Parameters:
newValue - The value to add.
Throws:
RAException

set

public void set(RAAllowedInList newValue)
         throws RAException
Sets the last element returned by nextElement.

Specified by:
set in interface RAAbstractList
Parameters:
newValue - The new value of this element
Throws:
RAException

clear

public void clear()
           throws RAException
Clears the list.

Specified by:
clear in interface RAAbstractList
Throws:
RAException

nextElement

public RAAllowedInList nextElement()
                            throws RAException
Returns the next element in this list or null if it doesn't exist.

Specified by:
nextElement in interface RAAbstractList
Returns:
The next element in this list.
Throws:
RAException

hasMoreElements

public boolean hasMoreElements()
                        throws RAException
Tests if this list's nextElement method can be called again.

Specified by:
hasMoreElements in interface RAAbstractList
Returns:
True if nextElement() can be called, false otherwise.
Throws:
RAException

resetIteration

public void resetIteration()
                    throws RAException
This method resets the list's iterator, which means nextElement will start at the beginning of the list again.

Specified by:
resetIteration in interface RAAbstractList
Throws:
RAException

makeClone

public RAAllowed makeClone()
                    throws RAException
Specified by:
makeClone in interface RAAllowed
Throws:
RAException

canContain

public boolean canContain(RAAllowed other)
Specified by:
canContain in interface RAAllowed

equals

public boolean equals(RAEqualityComparable otherElement)
               throws RAException
Specified by:
equals in interface RAEqualityComparable
Throws:
RAException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object